/* 鲜花配送网站自定义样式 */

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 轮播图样式 */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* 商品卡片样式 */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 商品图片缩略图样式 */
.product-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.product-thumbnail.selected {
    border-color: #EC4899; /* Tailwind pink-500 */
}

/* 数量控制组件 */
.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-control input {
    width: 40px;
    text-align: center;
    margin: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

/* 评价星级样式 */
.rating {
    display: inline-flex;
    color: #FBBF24; /* Tailwind amber-400 */
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 50;
    }
}

/* 管理后台样式 */
.admin-sidebar {
    height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
}

.admin-content {
    min-height: calc(100vh - 64px);
}

/* 自定义表单样式 */
.form-input:focus, .form-select:focus, .form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.25); /* Tailwind pink-500 with opacity */
    border-color: #EC4899; /* Tailwind pink-500 */
    outline: none;
} 